package com.wetao.lib_common.bean.response;

import com.wetao.lib_common.base.Base2Response;
import com.wetao.lib_common.utils.JsonUtils;

import java.time.LocalDateTime;
import java.util.List;

/**
 * author: zhouyh
 * created on: 3/8/21 11:35 AM
 * description:
 */
public class StudentLiveMessageInfo extends Base2Response {


    /**
     * {"code":0,"msg":"成功","data":[
     * {"id":187,"content":"辅老师正在上课",
     * "studentExamId":null,
     * "studentId":2163,
     * "roomName":"room_1",
     * "lessonName":"第一节"}]}
     */

    private List<Data> data;


    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static StudentLiveMessageInfo objectFromData(String str) {

        return (JsonUtils.getmGson()).fromJson(str, StudentLiveMessageInfo.class);
    }




    public static class Data {

        private Integer id;
        private String content;
        private Integer studentId;
        private String roomName;
        private String lessonName;
        private String subjectName;
        private String liveTime;
        private String createTime;

        public static Data objectFromData(String str) {

            return (JsonUtils.getmGson()).fromJson(str, Data.class);
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public Integer getStudentId() {
            return studentId;
        }

        public void setStudentId(Integer studentId) {
            this.studentId = studentId;
        }

        public String getRoomName() {
            return roomName;
        }

        public void setRoomName(String roomName) {
            this.roomName = roomName;
        }

        public String getLessonName() {
            return lessonName;
        }

        public void setLessonName(String lessonName) {
            this.lessonName = lessonName;
        }

        public String getSubjectName() {
            return subjectName;
        }

        public void setSubjectName(String subjectName) {
            this.subjectName = subjectName;
        }

        public String getLiveTime() {
            return liveTime;
        }

        public void setLiveTime(String liveTime) {
            this.liveTime = liveTime;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }
    }
}
